﻿namespace WebAdmin;

public static class AppWeb
{
    public static void AddApplication(this IServiceCollection services, Action<CoreOption> action)
    {
#if DEBUG
        Config.IsDebug = true;
#endif
        services.AddKnownCMSAdmin();
        services.AddKnownCells();
        services.AddKnownWeb(action);
    }

    public static void UseApplication(this WebApplication app)
    {
        //使用Known框架
        app.UseKnown();
    }
}